package Testing;
public class MathUtils {

  public static int max(int... values) {
    if (values.length == 0) {
      throw new IllegalArgumentException("No values supplied.");
    }

    int max = Integer.MIN_VALUE;
    for (int i : values) {
      if (i > max)
        max = i;
    }
    return max;
  }
  public static void main(String[] args)
  {
	  MathUtils a = new MathUtils ();
	  System.out.println(a.max(999,0,1,1001,2,23,4,6,76));
  }
}
